 

/**
 * Subclass to Associate.
 * @author Stefan
 */
public class Customer extends Associate {
    //Attributes

    private double credit;
    private double discount;

    public Customer(String id, String name, String address, String company, double credit, double discount)
    {
        super(id, name, address, company);
        this.credit = credit;
        this.discount = discount;
    }

    //Getters and setters
    public double getCredit()
    {
        return credit;
    }

    public void setCredit(double credit)
    {
        if (credit >= 0)
        {
            this.credit = credit;
        }
    }

    public double getDiscount()
    {
        return discount;
    }

    public void setDiscount(double discount)
    {
        if (discount >= 0)
        {
            this.discount = discount;
        }
    }
}
